﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Jok.Server.Infrastructure;
using System.ServiceModel.Activation;
using System.Diagnostics;

namespace Jok.Server.Checkers
{
    public class CheckersService : JokService
    {
        public override void CommandReceived(int UserId, Guid Ticket, JokCommand Command)
        {
            switch (Command.Command)
            {
                case 1: RegisterTicket(Ticket); break;
                case 2: Tickets[Ticket].SendCommand(Command); break;
            }
        }
    }
}
